package generator

import "beergo/plugins/maker"

func init() {
	LdMerchantReport()
}

func LdMerchantReport() {
	c := maker.CreateTable("LdMerchantReport","报告","ld")
	c.AddManyToOne("user","用户","sys.User").SetSrc("sys.User")
	c.AddManyToOne("org","用户","check.Org").SetSrc("check.Org")

	c.AddTitle()
	c.AddInt("status","报告状态")//报告状态 0:未生成 1:已生成
	c.AddInt("type","报告类型")//1 => '建工检测', 2 => '环保检测', 3 => '机动车检测', 4 => '其他',

	c.AddText("imageUrl","报告图片")
	c.AddJson("images","报告图片")
	c.AddText("serialNno","编号")
	c.AddText("qrCodeUrl","二维码图片地址")
	c.AddText("qrCodeUrl","二维码图片地址")
	c.AddFloat("amount","生成二维码报告花费").SetDigits(8).SetDecimals(2)
	c.AddInt("viewCount","查看次数")
	c.AddText("entrustedTime","委托日期")
	c.AddText("detectionTime","检测日期")
	c.AddText("issuingTime","出具报告日期")
	c.AddCreateAt()
	c.AddUpdateAt()


	c.Generate()
}